package com.hotel.daos;
import com.hotel.entitys.Staff;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface  StaffMapper {
    public List<Staff> selectAllStaff(@Param("keyword") String keyword);
    public Staff login(@Param("staff_telephone") String telephone,@Param("staff_password") String staff_password);
    public int insertStaff(Staff staff);
    public Staff selectStaffById(Integer staff_id);
    public int updateStaff(Staff staff);
    public int deleteStaffById(Integer staff_id);
    public int deleteStaffByIds(Object[] ids);
    public int selStaffByTel(@Param("telephone") String telephone);
    public List<Staff> selAllFix();
    public int updateLogin(Staff staff);
}

